<template>
  <view class="container">
    <view class="logo">
      <image src="../../static/img/logo.png" mode="aspectFill" style="width: 160rpx; height: 160rpx"></image>
      <view class="title">考神临门</view>
    </view>
    <view class="callour">
      <view style="font-size: 28rpx; font-family: PingFang SC, PingFang SC; font-weight: 500; color: #222222">联系我们</view>
      <view class="txt">{{ content }}</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return { content: '' };
  },
  methods: {
    // 获取商务合作
    async getysxy() {
      const res = await uni.$http.post('/index/agreement', {
        type: 'cooperation'
      });
      console.log('商务合作', res);
      this.content = res.data.data;
    }
  },
  onLoad() {
    this.getysxy();
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 152rpx 295rpx 0 295rpx;
    .title {
      font-size: 32rpx;
      font-family: PingFang SC, PingFang SC;
      font-weight: bold;
      color: #000000;
    }
  }
  .callour {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 690rpx;
    height: 100rpx;
    margin: 50rpx 30rpx;
    padding-inline-start: 30rpx;
    background: #f9f9f9;
    border-radius: 20rpx 20rpx 20rpx 20rpx;
    .txt {
      font-size: 28rpx;
      font-family: PingFang SC, PingFang SC;
      font-weight: bold;
      color: #222222;
    }
  }
}
</style>
